<template>
    <div class='statistic4' :id="id">
        <el-rate v-model="value" allow-half :colors="colors" />
    </div>
</template>

<script>
import register from '@/js/main/register.js';

export default {
    props: {
        element: {
            type: Object
        },
        id: {
            type: String
        }
    },
    data() {
        return {
            value: 2.5,
            colors: ['yellow', 'yellow', 'yellow']
        };
    },
    created() {
        register.addComponent(this);
    },
    destroyed() {
        register.removeComponent(this);
    }
};
</script>

<style lang='scss' >
.statistic4 {
    .el-rate__icon {
        font-size: 20px;
    }
}
</style>